<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>

	<div id="shop_list" class="border2">
		<div class="border-top">
			<h3>
				商品分类
			</h3>
		</div>
		<div class="border-body">
			<div id="321">
				<div class="GoodsCategoryWrap">
					<ul>
						<c:forEach items="${goodsDisplayCache.goodsCats}" var="cat"
							varStatus="index">
							<c:if test="${cat.parentId==0}">
								<li class="c-cat-depth-1">
									<a href="dp_cat_get.html?filter=${cat.catId}">${cat.catName}</a>
									<table class="c-cat-depth-2">
										<c:forEach items="${cat.goodsCats}" var="subCat"
											varStatus="subIndex">
											<c:if test="${subIndex.index%3 == 0}">
												<tr valign="top">
											</c:if>

											<td>
												<a href="dp_cat_get.html?filter=${subCat.catId}">${subCat.catName}</a>
											</td>

											<c:if test="${(subIndex.index+1)%3 == 0 or subIndex.last}">												 
												</tr>
											</c:if>
										</c:forEach>
									</table>
								</li>
							</c:if>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
		<div class="border-foot"></div>
	</div> 
	